package com.myprojects.common.pojo;

import javax.validation.Valid;

public class EmployeeWithResume {

    @Valid
    private Employee employee;

    @Valid
    private Resume resume;

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Resume getResume() {
        return resume;
    }

    public void setResume(Resume resume) {
        this.resume = resume;
    }

    @Override
    public String toString() {
        return "EmployeeWithResume{" +
                "employee=" + employee +
                ", resume=" + resume +
                '}';
    }
}
